<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        padding: 0;
        margin: 0;
      }
      .box {
        width: 343px;
        height: 267px;
        margin: 200px auto;
      }
      .huojian {
        position: absolute;
        top: 300px;
        left: 800px;
        animation: zd 0.4s linear 0s infinite alternate;
      }

      @keyframes zd {
        from {
          transform: translateX(-20px) translateY(-20px);
        }
        to {
          transform: translateX(20px) translateY(20px);
        }
      }

      .line1 {
        width: 2px;
        height: 166px;
        background-color: blue;
        position: absolute;
        top: 300px;
        left: 800px;
        transform: rotate(45deg);
        animation: yd 1s linear 0s infinite;
        opacity: 0;
      }
      .line2 {
        width: 2px;
        height: 266px;
        background-color: blue;
        position: absolute;
        top: 340px;
        left: 850px;
        transform: rotate(45deg);
        animation: yd 1s linear 0.4s infinite;
        opacity: 0;
      }
      .line3 {
        width: 2px;
        height: 266px;
        background-color: blue;
        position: absolute;
        top: 390px;
        left: 890px;
        transform: rotate(45deg);
        animation: yd 1s linear 0.68s infinite;
        opacity: 0;
      }
      .line4 {
        width: 2px;
        height: 266px;
        background-color: blue;
        position: absolute;
        top: 390px;
        left: 920px;
        transform: rotate(45deg);
        animation: yd 1s linear 0.2s infinite;
        opacity: 0;
      }
      @keyframes yd {
        0% {
          transform: rotate(45deg) translateY(-300px);
          opacity: 0;
        }
        50% {
          opacity: 1;
        }
        100% {
          transform: rotate(45deg) translateY(300px);
          opacity: 0;
        }
      }
    </style>
  </head>
  <body>
    <div class="box">
      <img class="huojian" src="images/huojian.png" alt="" />
      <div class="line1"></div>
      <div class="line2"></div>
      <div class="line3"></div>
      <div class="line4"></div>
    </div>
  </body>
</html>
